<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="zh-CN">
<head>
    <meta charset="UTF-8" />
    <title>粉粉日记微博分享</title>
    <link media="all" rel="stylesheet" href="http://test.ffrj.net/share.css?t=20130620001" type="text/css" />
    <script type="text/javascript" src="http://qzonestyle.gtimg.cn/qzone/openapi/qc_loader.js" data-appid="100387481" data-redirecturi="http://www.fenfenriji.com/share.html" charset="utf-8"></script>
    <script src="http://code.jquery.com/jquery-latest.min.js"
        type="text/javascript"></script>
    <script type="text/javascript">
      QC.Login.getMe(function(openId, accessToken){
        if(openId && accessToken){
            document.getElementById('form_access_token').setAttribute('value',accessToken);
            document.getElementById('form_openid').setAttribute('value',openId);
            document.getElementById('qqLoginBtn').setAttribute('style','display:none;');
            document.getElementById('shareweibo').removeAttribute('style');
        }

      });
      function postMsg(){
      	var arr = {content:$("#formcontent").val()};
        QC.api("add_t", arr).success(function(result) {
        	if (result.data.msg == 'ok') {
        		alert("发送成功");
        	}else{
        		alert("发送失败");
        	}
	    }).error(function(error) {
	        QC.Console.error("getMe 获取数据失败" + error)
	    })
      }
    </script>
</head>
<body>
    <div id="mq_login_title">
    粉粉日记微博分享
    </div>
    <div class="signin" id="login"><div id='qqface' style="float:right;"></div>   
        	<div class="subcolumn01"></div>
        	<div class="subcolumn02">		
        		<div class="banner"></div>
        		<div>
        		    <div id="switch" class="lineright"><a onclick=""></a></div>
        		        <div style="clear:both"></div>
        				<div class="signin-area">
        					<div class="signin-area-bg">
        						<div class="padder">				
        							<div class="clearer"></div>
        						</div>
        					    <div class="subcolumn03">
        				            <div class="left">
        					            <div class="middle">
        					                <div class="middle-padder">
        					                	<div id="logins" >
        										    <span id="qqLoginBtn">
        										    	<a href="https://graph.qq.com/oauth2.0/authorize?client_id=100387481&amp;response_type=token&amp;scope=all&amp;redirect_uri=http%3A%2F%2Fwww.fenfenriji.com%2Fshare.html"><img src="http://qzonestyle.gtimg.cn/qzone/vas/opensns/res/img/Connect_logo_5.png" alt="QQ登录" border="0"></a>
        										    </span>
                                                    <script type="text/javascript">
                                                       //调用QC.Login方法，指定btnId参数将按钮绑定在容器节点中
                                                        QC.Login({
                                                           //btnId：插入按钮的节点id，必选
                                                           btnId:"qweqweqweq",    
                                                           //用户需要确认的scope授权项，可选，默认all
                                                           scope:"all",
                                                           //按钮尺寸，可用值[A_XL| A_L| A_M| A_S|  B_M| B_S| C_S]，可选，默认B_S
                                                           size: "A_XL"
                                                        }, function(reqData, opts){//登录成功
                                                           //根据返回数据，更换按钮显示状态方法
                                                           var dom = document.getElementById('qqface'),
                                                           _logoutTemplate=[
                                                                //头像
                                                                '<span><img src="{figureurl}" class="{size_key}"/></span>',
                                                                //昵称
                                                                '<span>{nickname}</span>',
                                                                //退出
                                                                '<span><a href="javascript:QC.Login.signOut();">退出</a></span>'    
                                                           ].join("");
                                                           dom && (dom.innerHTML = QC.String.format(_logoutTemplate, {
                                                               nickname : QC.String.escHTML(reqData.nickname), //做xss过滤
                                                               figureurl : reqData.figureurl
                                                           }));
                                                        }, function(opts){//注销成功
                                                             alert('QQ登录 注销成功');
                                                             window.location.href="http://www.fenfenriji.com/share.html";
                                                            }
                                                        );
                                                    </script>
        										</div>
        					                </div>
        					            </div>
        					    		<div class="clearer"></div>
                                        <div id='shareweibo' style="display:none;">
                                                <form id="formid" method="post" action="https://graph.qq.com/t/add_t">
                                                    <input type="hidden" name='oauth_consumer_key' value="100387481">
                                                    <input type="hidden" id="form_access_token" name='access_token' value="0C6D46584040FD1FB604B00008A7E4A3
">
                                                    <input type="hidden" id="form_openid" name='openid' value="CBF1D86A334E7EEC13B13F077B3E941E">
                                                    <input type="hidden" name='format' value="json">
                                                    <textarea cols="41" rows="6" name="content" id="formcontent">一万个美丽的未来，比不上一个温暖的现在。懂得生活，就多给自己找些乐子，记录下每天的心情。我正在用#粉粉日记#，记得加我哦~（苹果、安卓手机下载：http://www.fenfenriji.com）
                                                    </textarea><br />
                                                    <br />
                                                    <input type="submit" onclick="postMsg();return false;" value="分享至腾讯微博好友">
                                                </form>
                                            </div>
        							</div>
                                    <div class="service_items_container"> 欢迎使用QQ登录分享粉粉日记给微博好友 </div>
        						</div>
        					</div>
        				</div>
                        <div id='loginform' style="height: 336px;">&nbsp;</div>
                        <div class='qrlogin' style="float:left;">
                            <img width="304" height="441" src="http://test.ffrj.net/img/snap1.png">
                        </div>
        		</div>
        	</div>
        	<div class="clearer"></div>
   </div>
   <div style=" text-align:center" class="divheadercolumn">
       <p>
        <img width="960" height="2" src="http://test.ffrj.net/img/supportLine.png">
        </p>
        <p class="smalltxt">
        <a href="http://www.fenfenriji.com/contact.html">联系我们</a>
        |
        <a href="http://www.fenfenriji.com/help/term_mob.html">用户协议</a>
        |
        <a target="_blank" href="http://www.fenfenriji.com/xiaoxiaotu.com/about.html">盘隆科技</a>
        |
        <a href="http://www.fenfenriji.com/xiaoxiaotu.com/job.html">加入我们</a>
        | 沪ICP备12018816号
    </div>
</body>
</html>